package com.xlh.dto.courseTest.experiment;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * @author sy
 */
@ApiModel("章节报告统计")
@Data
@Accessors(chain = true)
public class ExperimentChapterStatisticsReportDTO {

    @ApiModelProperty("提交人数")
    private Integer commitUsers;

    @ApiModelProperty("提交总人数")
    private Integer allUsers;

    @ApiModelProperty("平均分")
    private String average = "0";

    @ApiModelProperty("已参加学生")
    private List<UserExperimentReportInfoDTO> attendData;

    @ApiModelProperty("未参加学生")
    private List<UserExperimentReportInfoDTO> notAttendData;

    public void setAttendData(List<UserExperimentReportInfoDTO> attendData) {
        this.attendData = attendData;
        this.commitUsers = attendData.size();
    }

}
